<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>计算机的奥秘 - 深入解析计算机组成</title>
    <link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css">
    <link rel="stylesheet" href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=NotoSans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            color: #333;
            line-height: 1.6;
        }
        .serif {
            font-family: 'Noto Serif SC', serif;
        }
        .hero-gradient {
            background: linear-gradient(135deg, #6e8efb, #a777e3);
        }
        .card-hover {
            transition: all 0.3s ease;
        }
        .card-hover:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        .drop-cap::first-letter {
            float: left;
            font-size: 4rem;
            line-height: 0.8;
            margin-right: 0.5rem;
            font-weight: 700;
            color: #6e8efb;
        }
        .section-divider {
            width: 80px;
            height: 4px;
            background: linear-gradient(90deg, #6e8efb, #a777e3);
            margin: 2rem auto;
        }
    </style>
</head>
<body class="bg-gray-50">
    <!-- Hero Section -->
    <section class="hero-gradient text-white py-20 md:py-32 px-4">
        <div class="container mx-auto max-w-6xl">
            <div class="flex flex-col md:flex-row items-center">
                <div class="md:w-1/2 mb-10 md:mb-0">
                    <h1 class="text-4xl md:text-5xl font-bold mb-4 serif">探索计算机的奥秘</h1>
                    <p class="text-xl md:text-2xl mb-8 opacity-90">揭开现代计算机的神秘面纱，了解其精密构造与运作原理</p>
                    <a href="#content" class="inline-block bg-white text-indigo-600 hover:bg-gray-100 font-medium px-6 py-3 rounded-full transition duration-300">
                        <i class="fas fa-chevron-down mr-2"></i>开始探索
                    </a>
                </div>
                <div class="md:w-1/2">
                    <img src="https://images.unsplash.com/photo-1518770660439-4636190af475?ixlib=rb-1.2.1&auto=format&fit=crop&w=500&q=80" alt="计算机内部结构" class="rounded-lg shadow-xl transform rotate-2">
                </div>
            </div>
        </div>
    </section>

    <!-- Main Content -->
    <main id="content" class="container mx-auto max-w-6xl px-4 py-16">
        <!-- Intro Section -->
        <section class="mb-20">
            <div class="text-center mb-12">
                <span class="inline-block px-4 py-2 bg-indigo-100 text-indigo-600 rounded-full font-medium mb-3">
                    <i class="fas fa-microchip mr-2"></i>计算机科学
                </span>
                <h2 class="text-3xl md:text-4xl font-bold mb-4 serif">计算机组成原理</h2>
                <div class="section-divider"></div>
            </div>
            
            <div class="prose max-w-3xl mx-auto">
                <p class="drop-cap text-lg leading-relaxed">计算机，这个在我们日常生活中随处可见的神奇设备，其背后蕴藏着复杂而精密的组件，形成了一个协同工作的生态系统。让我们一起揭开计算机的神秘面纱，了解它的基本组成。</p>
            </div>
        </section>

        <!-- Components Section -->
        <section class="mb-20">
            <div class="grid md:grid-cols-2 gap-8 mb-12">
                <!-- CPU Card -->
                <div class="bg-white rounded-xl shadow-md overflow-hidden card-hover">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="w-12 h-12 rounded-full bg-indigo-100 text-indigo-600 flex items-center justify-center text-xl">
                                <i class="fas fa-brain"></i>
                            </div>
                            <h3 class="text-xl font-bold ml-4">中央处理器 (CPU)</h3>
                        </div>
                        <p class="text-gray-600">计算机的核心是中央处理器（<strong>CPU</strong>），它就像是计算机的大脑，负责执行各种计算和指令。想象一下，它是一位快速聪明的工匠，不断地进行数学运算、逻辑判断，使计算机得以正常运转。</p>
                    </div>
                </div>

                <!-- RAM Card -->
                <div class="bg-white rounded-xl shadow-md overflow-hidden card-hover">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="w-12 h-12 rounded-full bg-blue-100 text-blue-600 flex items-center justify-center text-xl">
                                <i class="fas fa-memory"></i>
                            </div>
                            <h3 class="text-xl font-bold ml-4">内存 (RAM)</h3>
                        </div>
                        <p class="text-gray-600">内存就像计算机的临时记忆，存储当前正在执行的程序和数据，是CPU获取信息的地方。可以将内存想象成一张办公桌，上面摆放着当前正在处理的文件和文件夹。</p>
                    </div>
                </div>

                <!-- Storage Card -->
                <div class="bg-white rounded-xl shadow-md overflow-hidden card-hover">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="w-12 h-12 rounded-full bg-purple-100 text-purple-600 flex items-center justify-center text-xl">
                                <i class="fas fa-database"></i>
                            </div>
                            <h3 class="text-xl font-bold ml-4">存储设备</h3>
                        </div>
                        <p class="text-gray-600">计算机还拥有各种存储设备，如硬盘和固态<strong>硬盘</strong>（SSD），它们是计算机的长期存储器，负责保存操作系统、应用程序和用户数据。你可以把它们想象成一个巨大的文件柜，存放着计算机的各种资料。</p>
                    </div>
                </div>

                <!-- I/O Card -->
                <div class="bg-white rounded-xl shadow-md overflow-hidden card-hover">
                    <div class="p-6">
                        <div class="flex items-center mb-4">
                            <div class="w-12 h-12 rounded-full bg-green-100 text-green-600 flex items-center justify-center text-xl">
                                <i class="fas fa-keyboard"></i>
                            </div>
                            <h3 class="text-xl font-bold ml-4">输入/输出设备</h3>
                        </div>
                        <p class="text-gray-600">我们的计算机还有输入设备（如键盘和鼠标）和输出设备（如显示器和打印机），它们使我们能够与计算机进行交互，看到计算机的处理结果。</p>
                    </div>
                </div>
            </div>
        </section>

        <!-- Diagram Section -->
        <section class="mb-20">
            <div class="text-center mb-12">
                <h2 class="text-3xl font-bold mb-4 serif">计算机组件关系图</h2>
                <p class="text-gray-600 max-w-2xl mx-auto">计算机的各个组件如何协同工作？下面的图表展示了主要组件之间的关系和数据流向。</p>
                <div class="section-divider"></div>
            </div>
            
            <div class="bg-white rounded-xl shadow-md p-6">
                <div class="mermaid">
                    flowchart LR
                    A[输入设备\n键盘/鼠标] --> B[CPU\n中央处理器]
                    B --> C[内存\nRAM]
                    C --> B
                    B --> D[存储设备\n硬盘/SSD]
                    D --> B
                    B --> E[输出设备\n显示器/打印机]
                </div>
            </div>
        </section>

        <!-- Conclusion -->
        <section class="prose max-w-3xl mx-auto">
            <p class="text-lg leading-relaxed">计算机的基本组成就像一个精密而高效的工厂，各个组件协同工作，完成着各种任务。通过了解这些基本组成部分，我们能更好地理解计算机的运作原理，为更深入的学习打下坚实基础。让我们一同走进计算机的奇妙世界，探索其中的奥秘。</p>
        </section>
    </main>

    <!-- Footer -->
    <footer class="bg-gray-900 text-gray-300 py-12">
        <div class="container mx-auto max-w-6xl px-4">
            <div class="text-center">
                <h3 class="text-xl font-medium mb-2">技术小馆</h3>
                <a href="http://www.yuque.com/jtostring" class="text-indigo-400 hover:text-white transition duration-300">
                    www.yuque.com/jtostring
                </a>
                <div class="mt-6">
                    <p class="text-sm opacity-75">© 2023 技术小馆 - 探索技术的无限可能</p>
                </div>
            </div>
        </div>
    </footer>

    <script>
        mermaid.initialize({
            startOnLoad: true,
            theme: 'default',
            flowchart: {
                useMaxWidth: true,
                htmlLabels: true,
                curve: 'basis'
            }
        });
    </script>
</body>
</html>